import request from '@/utils/axios';
import appName from "@/api/appName";

// 新增或修改通用参数组
export function insertOrUpdateGroupApi(params) {
    return request({
      url: appName.HQNR+'/common/group/insertOrUpdate',
      method: 'post',
      data: params
    })
}

// 获取通用参数组列表
export function getCommonPageListApi(params) {
    return request({
      url: appName.HQNR+'/common/group/pageList',
      method: 'post',
      data: params
    })
}

// 删除参数组
export function removeGroupApi(params) {
    return request({
      url: appName.HQNR+'/common/group/removeById',
      method: 'post',
      data: params
    })
}

// 获取参数组编码获取参数列表
export function getParamPageListApi(params) {
    return request({
      url: appName.HQNR+'/common/param/pageList',
      method: 'post',
      data: params
    })
}

// 新增或修改通用参数
export function insertOrUpdateParamApi(params) {
  return request({
    url: appName.HQNR+'/common/param/insertOrUpdate',
    method: 'post',
    data: params
  })
}

// 删除通用参数
export function removeParamApi(params) {
  return request({
    url: appName.HQNR+'/common/param/removeById',
    method: 'post',
    data: params
  })
}
